//
//  BwtAdEventManager.h
//  bwt_ad_flutter
//
//  Created by ciba on 2024/8/29.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import "AdParams.h"

@interface BwtAdEventManager : NSObject

@property (nonatomic) FlutterMethodChannel *channel;

- (void)setFlutterMethodChannel:(FlutterMethodChannel*)channel;

- (void)postOnAdLoadEvent:(AdParams*)adParams;
//信息流自渲染的onload 需要把自渲染数据传出去
- (void)postNativeAdOnAdLoadEvent:(AdParams*)adParams;

- (void)postOnAdLoadFailedEvent:(AdParams*)adParams message:(NSString*)message;

- (void)postOnAdMeasuredEvent:(AdParams*)adParams extras:(NSMutableDictionary*)extras;

- (void)postOnAdExposeEvent:(AdParams*)adParams;

- (void)postOnAdClickEvent:(AdParams*)adParams;

- (void)postOnAdCloseEvent:(AdParams*)adParams;

- (void)postOnAdRenderEvent:(AdParams*)adParams;

- (void)postOnAdRewardEvent:(AdParams*)adParams;

+ (BwtAdEventManager *)getBwtAdEventManager;
@end
